#ifndef MONITORINGTOOL_H
#define MONITORINGTOOL_H

#include <QObject>
#include <QSettings>
#include <QDateTime>
#include "userModel.h"
#include "QJsonObject"
#include <QCryptographicHash>
class MonitoringTool : public QObject
{
    Q_OBJECT
public:
    explicit MonitoringTool(QObject *parent = nullptr);
    static void setStlyeSheet(const QString &);
    QString readData(const QString&);
    void writeData(const QString&,const QString&);
    static bool isPhoneNumberValid(const QString &phoneNumber);
    static QString getNowTimes();
    static QJsonObject getUserJson(const QString&,const QString&,const QString&,const QString&,const QString&);
    static QString sha256Hash(const QString& input);
signals:
private:
    QSettings *m_set;
};

#endif // MONITORINGTOOL_H
